#coding=utf-8

#根据id查找控件
def FindID(driver,ID):

    return driver.find_element_by_id(ID);
#根据name查找控件
def FindName(driver, name):

    return driver.find_element_by_name(name)
#根据class查找控件
def FindCLASS(driver, cls):

    return driver.find_element_by_class_name(cls)
#根据tag查找控件
def FindTAG(driver, tag):

    return driver.find_element_by_tag_name(tag)
#根据xPath查找控件
def FindXPATH(driver, xPath):

    return driver.find_element_by_xpath(xPath)
#根据link查找控件
def FindLINK(driver, link):

    return driver.find_element_by_link_text(link)
#根据part查找控件
def FindPArttest(driver, part):

    return driver.find_element_by_partial_link_text(part)
#根据css查找控件
def FindCSS(driver, css):

    return driver.find_element_by_css_selector(css)